package com.zys.principles.demo3.emp2;
/**
 *通过对接口的依赖，实现不同的功能
 */
public class Client {
    public static void main(String[] args) {
        Person person = new Person();
        person.receive(new Email());
        person.receive(new WeiXin());
    }
}
